package com.ypd.shop.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import com.ypd.common.annotation.Excel;
import com.ypd.common.core.domain.BaseEntity;

/**
 * 文章评论对象 tb_comment
 * 
 * @author lin
 * @date 2025-01-16
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Comment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论id */
    private Long id;

    /** 关联的文章id */
    @Excel(name = "关联的文章id")
    private Long propertyId;

    /** 评论时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "评论时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date created;


    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 评论用户用户名 */
    private String author;

    /** 评论用户id */
    @Excel(name = "评论用户id")
    private Long userId;



}
